package com.millstein.feign;

import com.millstein.util.JsonData;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: tsing
 * @create: 2021-09-23 14:16
 */
@FeignClient(name = "xdclass-user-service")
public interface UserFeignService {

    /**
     * 根据地址id查询地址详情
     * @param id 地址id
     * @return
     */
    @GetMapping("/api/address/v1/{id}")
    JsonData findById(@ApiParam("收货地址id") @PathVariable("id") Long id);
}
